<?=$this->ajaxForm('contentForm',array('target'=>'sh_user_manager','method'=>'post','action'=>'/admin/user/save/'))?>
<div class="form_element">
<?=$this->formLabel('user[username]','Username: ');?>
<?=$this->formText('user[username]',$this->user->username,array('style'=>'width:300px;'));?>
</div>

<div class="form_element">
<?=$this->formLabel('user[firstname]','First Name: ');?>
<?=$this->formText('user[firstname]',$this->user->firstname,array('style'=>'width:300px;'));?>
</div>

<div class="form_element">
<?=$this->formLabel('user[lastname]','Last Name: ');?>
<?=$this->formText('user[lastname]',$this->user->lastname,array('style'=>'width:300px;'));?>
</div>

<div class="form_element">
<?=$this->formLabel('user[email]','E-mail: ');?>
<?=$this->formText('user[email]',$this->user->email,array('style'=>'width:300px;'));?>
</div>

<div class="form_element">
<?=$this->formLabel('user[password]','Password: ');?>
<?=$this->formPassword('user[password]',$this->user->password,array('style'=>'width:300px;'));?>
</div>

<div class="form_element">
<?=$this->formLabel('user[role]','User Role: ');?>
<?=$this->formSelectExt('user[role]',$this->user->role,$this->roles,null,'id','title');?>
</div>

<div class="form_element" align="center">
<?=$this->formHidden('user[id]',$this->user->id);?>
<?=$this->formSubmit('submit','Save');?>
<?=$this->formButton('cancel','Cancel',array('onclick'=>"$('#sh_dialog').dialog('close');"));?>
</div>